using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;

using ILRuntime.CLR.TypeSystem;
using ILRuntime.CLR.Method;
using ILRuntime.Runtime.Enviorment;
using ILRuntime.Runtime.Intepreter;
using ILRuntime.Runtime.Stack;
using ILRuntime.Reflection;
using ILRuntime.CLR.Utils;
using System.Linq;

namespace ILRuntime.Runtime.Generated
{
    unsafe class ProtoBuf_ProtoContractAttribute_Binding
    {
        public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
        {
            BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
            MethodBase method;
            Type[] args;
            Type type = typeof(ProtoBuf.ProtoContractAttribute);
            args = new Type[]{};
            method = type.GetMethod("get_Name", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_Name_0);
            args = new Type[]{typeof(System.String)};
            method = type.GetMethod("set_Name", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_Name_1);
            args = new Type[]{};
            method = type.GetMethod("get_ImplicitFirstTag", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_ImplicitFirstTag_2);
            args = new Type[]{typeof(System.Int32)};
            method = type.GetMethod("set_ImplicitFirstTag", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_ImplicitFirstTag_3);
            args = new Type[]{};
            method = type.GetMethod("get_UseProtoMembersOnly", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_UseProtoMembersOnly_4);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_UseProtoMembersOnly", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_UseProtoMembersOnly_5);
            args = new Type[]{};
            method = type.GetMethod("get_IgnoreListHandling", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IgnoreListHandling_6);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_IgnoreListHandling", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_IgnoreListHandling_7);
            args = new Type[]{};
            method = type.GetMethod("get_ImplicitFields", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_ImplicitFields_8);
            args = new Type[]{typeof(ProtoBuf.ImplicitFields)};
            method = type.GetMethod("set_ImplicitFields", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_ImplicitFields_9);
            args = new Type[]{};
            method = type.GetMethod("get_InferTagFromName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_InferTagFromName_10);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_InferTagFromName", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_InferTagFromName_11);
            args = new Type[]{};
            method = type.GetMethod("get_DataMemberOffset", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_DataMemberOffset_12);
            args = new Type[]{typeof(System.Int32)};
            method = type.GetMethod("set_DataMemberOffset", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_DataMemberOffset_13);
            args = new Type[]{};
            method = type.GetMethod("get_SkipConstructor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_SkipConstructor_14);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_SkipConstructor", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_SkipConstructor_15);
            args = new Type[]{};
            method = type.GetMethod("get_AsReferenceDefault", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_AsReferenceDefault_16);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_AsReferenceDefault", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_AsReferenceDefault_17);
            args = new Type[]{};
            method = type.GetMethod("get_IsGroup", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_IsGroup_18);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_IsGroup", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_IsGroup_19);
            args = new Type[]{};
            method = type.GetMethod("get_EnumPassthru", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, get_EnumPassthru_20);
            args = new Type[]{typeof(System.Boolean)};
            method = type.GetMethod("set_EnumPassthru", flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, set_EnumPassthru_21);



            app.RegisterCLRCreateDefaultInstance(type, () => new ProtoBuf.ProtoContractAttribute());
            app.RegisterCLRCreateArrayInstance(type, s => new ProtoBuf.ProtoContractAttribute[s]);

            args = new Type[]{};
            method = type.GetConstructor(flag, null, args, null);
            app.RegisterCLRMethodRedirection(method, Ctor_0);

        }


        static StackObject* get_Name_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Name;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_Name_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @value = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Name = value;

            return __ret;
        }

        static StackObject* get_ImplicitFirstTag_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.ImplicitFirstTag;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* set_ImplicitFirstTag_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @value = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ImplicitFirstTag = value;

            return __ret;
        }

        static StackObject* get_UseProtoMembersOnly_4(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.UseProtoMembersOnly;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* set_UseProtoMembersOnly_5(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.UseProtoMembersOnly = value;

            return __ret;
        }

        static StackObject* get_IgnoreListHandling_6(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.IgnoreListHandling;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* set_IgnoreListHandling_7(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.IgnoreListHandling = value;

            return __ret;
        }

        static StackObject* get_ImplicitFields_8(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.ImplicitFields;

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }

        static StackObject* set_ImplicitFields_9(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ImplicitFields @value = (ProtoBuf.ImplicitFields)typeof(ProtoBuf.ImplicitFields).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)20);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.ImplicitFields = value;

            return __ret;
        }

        static StackObject* get_InferTagFromName_10(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.InferTagFromName;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* set_InferTagFromName_11(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.InferTagFromName = value;

            return __ret;
        }

        static StackObject* get_DataMemberOffset_12(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.DataMemberOffset;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method;
            return __ret + 1;
        }

        static StackObject* set_DataMemberOffset_13(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @value = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.DataMemberOffset = value;

            return __ret;
        }

        static StackObject* get_SkipConstructor_14(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.SkipConstructor;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* set_SkipConstructor_15(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SkipConstructor = value;

            return __ret;
        }

        static StackObject* get_AsReferenceDefault_16(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.AsReferenceDefault;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* set_AsReferenceDefault_17(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.AsReferenceDefault = value;

            return __ret;
        }

        static StackObject* get_IsGroup_18(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.IsGroup;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* set_IsGroup_19(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.IsGroup = value;

            return __ret;
        }

        static StackObject* get_EnumPassthru_20(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.EnumPassthru;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value = result_of_this_method ? 1 : 0;
            return __ret + 1;
        }

        static StackObject* set_EnumPassthru_21(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* ptr_of_this_method;
            StackObject* __ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ProtoBuf.ProtoContractAttribute instance_of_this_method = (ProtoBuf.ProtoContractAttribute)typeof(ProtoBuf.ProtoContractAttribute).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags)0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.EnumPassthru = value;

            return __ret;
        }




        static StackObject* Ctor_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject* __ret = ILIntepreter.Minus(__esp, 0);

            var result_of_this_method = new ProtoBuf.ProtoContractAttribute();

            return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method);
        }


    }
}
